source 'https://gems.ruby-china.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

gem 'rails', '~> 5.1.1'
gem 'puma'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'turbolinks'
gem 'jbuilder'

group :development, :test do
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem 'capybara', '~> 2.13.0'
  gem 'selenium-webdriver'
  gem 'rspec-rails'
  gem 'factory_girl_rails'
end

group :development do
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # 配合chrome的插件使用
  gem 'meta_request'
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end


group :test do
  gem 'database_cleaner'
  gem 'launchy'
end

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'mysql2'
gem 'figaro'
gem 'jquery-rails'
gem 'bootstrap-sass'
gem 'simple_form', '~> 3.5.0'
# gem 'font-awesome-sass'
gem 'slim-rails'
# 生成静态页面
gem 'high_voltage', '~> 3.0.0'
gem 'carrierwave'
gem 'carrierwave-upyun'
gem 'status-page'
# 拦截过低版本的浏览器，see config/initializers/browser_warrior.rb
gem 'browser_warrior'
gem 'redis-namespace'
gem 'sidekiq'
# 分页
gem 'kaminari', '~> 1.0.1'
gem 'rails-i18n', '~> 5.0.3'
# gem 'mina', '~> 1.0.6', require: false
# gem 'mina-puma', '~> 1.0.1', require: false
# gem 'mina-multistage', '~> 1.0.3', require: false
# gem 'mina-sidekiq', '~> 1.0.1', require: false
# gem 'mina-logs', '~> 1.0.1', require: false
# log格式化
gem 'lograge'
gem 'annotate'
gem 'enumerize'
# 搜索
gem 'ransack'
gem 'state_machine'
# 错误日志
gem 'exception-track'
# 解析user-agent
gem 'browser'
gem 'spreadsheet'

# https://github.com/nathanvda/cocoon
# 级联表单快速增删
gem 'cocoon'

gem 'rest-client'